package top.tangyh.lamp.care.vo.query;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
public class ObsvRecordQueryByDoctorParam implements Serializable {

	@Schema(description ="病人识别号，说明：精确查询",requiredMode = Schema.RequiredMode.REQUIRED)
	@NotBlank(message = "病人识别号,不能为空")
	private String patientIdent;

	@Schema(description ="病人住院号", requiredMode = Schema.RequiredMode.NOT_REQUIRED,hidden = false)
	private String hospitalNumber;

	@Schema(description ="当天日期,说明  时间戳",requiredMode = Schema.RequiredMode.REQUIRED)
	@NotNull(message = "当天日期,不能为空")
	private Long currTime;


	@Schema(description ="开始时间,说明：当存在班次时，以本参数为准; 时间戳",hidden = true)
	private Long startTime;

	@Schema(description ="结束时间，说明：当存在班次时，以本参数为准; 时间戳",hidden = true)
	private Long endTime;

	public ObsvRecordQueryByDoctorParam(Long shiftCode, Long shiftTime, String patientIdent, String hospitalNumber) {
		this.patientIdent = patientIdent;
		this.hospitalNumber = hospitalNumber;
	}
}